package org.ccay.demo.address.dao;

import java.util.ArrayList;
import java.util.List;

import org.ccay.demo.address.vo.CityVO;
import org.ccay.demo.address.vo.ProvinceVO;

public class AddressDao {
	private static List<ProvinceVO> provinces  = new ArrayList<ProvinceVO>();
	private static List<CityVO> cities  = new ArrayList<CityVO>();
	static{
		provinces.add(new ProvinceVO(10L,"安徽省"));
		provinces.add(new ProvinceVO(20L,"北京市"));
		provinces.add(new ProvinceVO(30L,"福建省"));
		provinces.add(new ProvinceVO(40L,"甘肃省"));
		provinces.add(new ProvinceVO(50L,"广东省"));
		provinces.add(new ProvinceVO(60L,"广西自治区"));
		provinces.add(new ProvinceVO(70L,"贵州省"));
		provinces.add(new ProvinceVO(80L,"海南省"));
		provinces.add(new ProvinceVO(90L,"河北省"));
		provinces.add(new ProvinceVO(100L,"河南省"));
		provinces.add(new ProvinceVO(110L,"黑龙江省"));
		provinces.add(new ProvinceVO(120L,"湖北省"));
		provinces.add(new ProvinceVO(130L,"湖南省"));
		provinces.add(new ProvinceVO(140L,"吉林省"));
		provinces.add(new ProvinceVO(150L,"江苏省"));
		provinces.add(new ProvinceVO(160L,"江西省"));
		provinces.add(new ProvinceVO(170L,"辽宁省"));
		provinces.add(new ProvinceVO(180L,"内蒙古自治区"));
		provinces.add(new ProvinceVO(190L,"宁夏自治区"));
		provinces.add(new ProvinceVO(200L,"青海省"));
		provinces.add(new ProvinceVO(210L,"山东省"));
		provinces.add(new ProvinceVO(220L,"山西省"));
		provinces.add(new ProvinceVO(230L,"陕西省"));
		provinces.add(new ProvinceVO(240L,"上海市"));
		provinces.add(new ProvinceVO(250L,"四川省"));
		provinces.add(new ProvinceVO(260L,"天津市"));
		provinces.add(new ProvinceVO(270L,"西藏自治区"));
		provinces.add(new ProvinceVO(280L,"新疆自治区"));
		provinces.add(new ProvinceVO(290L,"云南省"));
		provinces.add(new ProvinceVO(300L,"浙江省"));
		provinces.add(new ProvinceVO(310L,"重庆市"));

		
		cities.add(new CityVO(10L,"北京市",20L));
		cities.add(new CityVO(22L,"天津市",260L));
		cities.add(new CityVO(311L,"石家庄市",90L));
		cities.add(new CityVO(315L,"唐山市",90L));
		cities.add(new CityVO(335L,"秦皇岛市",90L));
		cities.add(new CityVO(310L,"邯郸市",90L));
		cities.add(new CityVO(319L,"邢台市",90L));
		cities.add(new CityVO(312L,"保定市",90L));
		cities.add(new CityVO(313L,"张家口市",90L));
		cities.add(new CityVO(314L,"承德市",90L));
		cities.add(new CityVO(317L,"沧州市",90L));
		cities.add(new CityVO(316L,"廊坊市",90L));
		cities.add(new CityVO(318L,"衡水市",90L));
		cities.add(new CityVO(351L,"太原市",220L));
		cities.add(new CityVO(352L,"大同市",220L));
		cities.add(new CityVO(353L,"阳泉市",220L));
		cities.add(new CityVO(355L,"长治市",220L));
		cities.add(new CityVO(356L,"晋城市",220L));
		cities.add(new CityVO(349L,"朔州市",220L));
		cities.add(new CityVO(354L,"晋中市",220L));
		cities.add(new CityVO(359L,"运城市",220L));
		cities.add(new CityVO(350L,"忻州市",220L));
		cities.add(new CityVO(357L,"临汾市",220L));
		cities.add(new CityVO(358L,"吕梁市",220L));
		cities.add(new CityVO(471L,"呼和浩特市",180L));
		cities.add(new CityVO(472L,"包头市",180L));
		cities.add(new CityVO(473L,"乌海市",180L));
		cities.add(new CityVO(476L,"赤峰市",180L));
		cities.add(new CityVO(475L,"通辽市",180L));
		cities.add(new CityVO(477L,"鄂尔多斯市",180L));
		cities.add(new CityVO(470L,"呼伦贝尔市",180L));
		cities.add(new CityVO(482L,"兴安盟",180L));
		cities.add(new CityVO(479L,"锡林郭勒盟",180L));
		cities.add(new CityVO(474L,"乌兰察布市",180L));
		cities.add(new CityVO(478L,"巴彦淖尔市",180L));
		cities.add(new CityVO(483L,"阿拉善盟",180L));
		cities.add(new CityVO(24L,"沈阳市",170L));
		cities.add(new CityVO(411L,"大连市",170L));
		cities.add(new CityVO(412L,"鞍山市",170L));
		cities.add(new CityVO(413L,"抚顺市",170L));
		cities.add(new CityVO(414L,"本溪市",170L));
		cities.add(new CityVO(415L,"丹东市",170L));
		cities.add(new CityVO(416L,"锦州市",170L));
		cities.add(new CityVO(417L,"营口市",170L));
		cities.add(new CityVO(418L,"阜新市",170L));
		cities.add(new CityVO(419L,"辽阳市",170L));
		cities.add(new CityVO(427L,"盘锦市",170L));
		cities.add(new CityVO(410L,"铁岭市",170L));
		cities.add(new CityVO(421L,"朝阳市",170L));
		cities.add(new CityVO(429L,"葫芦岛市",170L));
		cities.add(new CityVO(431L,"长春市",140L));
		cities.add(new CityVO(432L,"吉林市",140L));
		cities.add(new CityVO(434L,"四平市",140L));
		cities.add(new CityVO(437L,"辽源市",140L));
		cities.add(new CityVO(435L,"通化市",140L));
		cities.add(new CityVO(439L,"白山市",140L));
		cities.add(new CityVO(438L,"松原市",140L));
		cities.add(new CityVO(436L,"白城市",140L));
		cities.add(new CityVO(433L,"延边州",140L));
		cities.add(new CityVO(451L,"哈尔滨市",110L));
		cities.add(new CityVO(452L,"齐齐哈尔市",110L));
		cities.add(new CityVO(467L,"鸡西市",110L));
		cities.add(new CityVO(468L,"鹤岗市",110L));
		cities.add(new CityVO(469L,"双鸭山市",110L));
		cities.add(new CityVO(459L,"大庆市",110L));
		cities.add(new CityVO(458L,"伊春市",110L));
		cities.add(new CityVO(454L,"佳木斯市",110L));
		cities.add(new CityVO(464L,"七台河市",110L));
		cities.add(new CityVO(453L,"牡丹江市",110L));
		cities.add(new CityVO(456L,"黑河市",110L));
		cities.add(new CityVO(455L,"绥化市",110L));
		cities.add(new CityVO(457L,"大兴安岭地区",110L));
		cities.add(new CityVO(21L,"上海市",240L));
		cities.add(new CityVO(25L,"南京市",150L));
		cities.add(new CityVO(510L,"无锡市",150L));
		cities.add(new CityVO(516L,"徐州市",150L));
		cities.add(new CityVO(519L,"常州市",150L));
		cities.add(new CityVO(512L,"苏州市",150L));
		cities.add(new CityVO(513L,"南通市",150L));
		cities.add(new CityVO(518L,"连云港市",150L));
		cities.add(new CityVO(517L,"淮安市",150L));
		cities.add(new CityVO(515L,"盐城市",150L));
		cities.add(new CityVO(514L,"扬州市",150L));
		cities.add(new CityVO(511L,"镇江市",150L));
		cities.add(new CityVO(523L,"泰州市",150L));
		cities.add(new CityVO(527L,"宿迁市",150L));
		cities.add(new CityVO(571L,"杭州市",300L));
		cities.add(new CityVO(574L,"宁波市",300L));
		cities.add(new CityVO(577L,"温州市",300L));
		cities.add(new CityVO(573L,"嘉兴市",300L));
		cities.add(new CityVO(572L,"湖州市",300L));
		cities.add(new CityVO(575L,"绍兴市",300L));
		cities.add(new CityVO(579L,"金华市",300L));
		cities.add(new CityVO(570L,"衢州市",300L));
		cities.add(new CityVO(580L,"舟山市",300L));
		cities.add(new CityVO(576L,"台州市",300L));
		cities.add(new CityVO(578L,"丽水市",300L));
		cities.add(new CityVO(551L,"合肥市",10L));
		cities.add(new CityVO(553L,"芜湖市",10L));
		cities.add(new CityVO(552L,"蚌埠市",10L));
		cities.add(new CityVO(554L,"淮南市",10L));
		cities.add(new CityVO(555L,"马鞍山市",10L));
		cities.add(new CityVO(561L,"淮北市",10L));
		cities.add(new CityVO(562L,"铜陵市",10L));
		cities.add(new CityVO(556L,"安庆市",10L));
		cities.add(new CityVO(559L,"黄山市",10L));
		cities.add(new CityVO(550L,"滁州市",10L));
		cities.add(new CityVO(558L,"阜阳市",10L));
		cities.add(new CityVO(557L,"宿州市",10L));
		cities.add(new CityVO(565L,"巢湖市",10L));
		cities.add(new CityVO(564L,"六安市",10L));
		cities.add(new CityVO(1558L,"亳州市",10L));
		cities.add(new CityVO(566L,"池州市",10L));
		cities.add(new CityVO(563L,"宣城市",10L));
		cities.add(new CityVO(591L,"福州市",30L));
		cities.add(new CityVO(592L,"厦门市",30L));
		cities.add(new CityVO(594L,"莆田市",30L));
		cities.add(new CityVO(598L,"三明市",30L));
		cities.add(new CityVO(595L,"泉州市",30L));
		cities.add(new CityVO(596L,"漳州市",30L));
		cities.add(new CityVO(599L,"南平市",30L));
		cities.add(new CityVO(597L,"龙岩市",30L));
		cities.add(new CityVO(593L,"宁德市",30L));
		cities.add(new CityVO(791L,"南昌市",160L));
		cities.add(new CityVO(798L,"景德镇市",160L));
		cities.add(new CityVO(799L,"萍乡市",160L));
		cities.add(new CityVO(792L,"九江市",160L));
		cities.add(new CityVO(790L,"新余市",160L));
		cities.add(new CityVO(701L,"鹰潭市",160L));
		cities.add(new CityVO(797L,"赣州市",160L));
		cities.add(new CityVO(796L,"吉安市",160L));
		cities.add(new CityVO(795L,"宜春市",160L));
		cities.add(new CityVO(794L,"抚州市",160L));
		cities.add(new CityVO(793L,"上饶市",160L));
		cities.add(new CityVO(531L,"济南市",210L));
		cities.add(new CityVO(532L,"青岛市",210L));
		cities.add(new CityVO(533L,"淄博市",210L));
		cities.add(new CityVO(632L,"枣庄市",210L));
		cities.add(new CityVO(546L,"东营市",210L));
		cities.add(new CityVO(535L,"烟台市",210L));
		cities.add(new CityVO(536L,"潍坊市",210L));
		cities.add(new CityVO(537L,"济宁市",210L));
		cities.add(new CityVO(538L,"泰安市",210L));
		cities.add(new CityVO(631L,"威海市",210L));
		cities.add(new CityVO(633L,"日照市",210L));
		cities.add(new CityVO(634L,"莱芜市",210L));
		cities.add(new CityVO(539L,"临沂市",210L));
		cities.add(new CityVO(534L,"德州市",210L));
		cities.add(new CityVO(635L,"聊城市",210L));
		cities.add(new CityVO(543L,"滨州市",210L));
		cities.add(new CityVO(530L,"菏泽市",210L));
		cities.add(new CityVO(371L,"郑州市",100L));
		cities.add(new CityVO(378L,"开封市",100L));
		cities.add(new CityVO(379L,"洛阳市",100L));
		cities.add(new CityVO(375L,"平顶山市",100L));
		cities.add(new CityVO(372L,"安阳市",100L));
		cities.add(new CityVO(392L,"鹤壁市",100L));
		cities.add(new CityVO(373L,"新乡市",100L));
		cities.add(new CityVO(391L,"焦作市",100L));
		cities.add(new CityVO(1391L,"省直辖",100L));
		cities.add(new CityVO(393L,"濮阳市",100L));
		cities.add(new CityVO(374L,"许昌市",100L));
		cities.add(new CityVO(395L,"漯河市",100L));
		cities.add(new CityVO(398L,"三门峡市",100L));
		cities.add(new CityVO(377L,"南阳市",100L));
		cities.add(new CityVO(370L,"商丘市",100L));
		cities.add(new CityVO(376L,"信阳市",100L));
		cities.add(new CityVO(394L,"周口市",100L));
		cities.add(new CityVO(396L,"驻马店市",100L));
		cities.add(new CityVO(27L,"武汉市",120L));
		cities.add(new CityVO(714L,"黄石市",120L));
		cities.add(new CityVO(719L,"十堰市",120L));
		cities.add(new CityVO(717L,"宜昌市",120L));
		cities.add(new CityVO(710L,"襄樊市",120L));
		cities.add(new CityVO(711L,"鄂州市",120L));
		cities.add(new CityVO(724L,"荆门市",120L));
		cities.add(new CityVO(712L,"孝感市",120L));
		cities.add(new CityVO(716L,"荆州市",120L));
		cities.add(new CityVO(713L,"黄冈市",120L));
		cities.add(new CityVO(715L,"咸宁市",120L));
		cities.add(new CityVO(722L,"随州市",120L));
		cities.add(new CityVO(718L,"恩施州",120L));
		cities.add(new CityVO(728L,"省直辖",120L));
		cities.add(new CityVO(731L,"长沙市",130L));
		cities.add(new CityVO(733L,"株洲市",130L));
		cities.add(new CityVO(732L,"湘潭市",130L));
		cities.add(new CityVO(734L,"衡阳市",130L));
		cities.add(new CityVO(739L,"邵阳市",130L));
		cities.add(new CityVO(730L,"岳阳市",130L));
		cities.add(new CityVO(736L,"常德市",130L));
		cities.add(new CityVO(744L,"张家界市",130L));
		cities.add(new CityVO(737L,"益阳市",130L));
		cities.add(new CityVO(735L,"郴州市",130L));
		cities.add(new CityVO(746L,"永州市",130L));
		cities.add(new CityVO(745L,"怀化市",130L));
		cities.add(new CityVO(738L,"娄底市",130L));
		cities.add(new CityVO(743L,"湘西州",130L));
		cities.add(new CityVO(20L,"广州市",50L));
		cities.add(new CityVO(751L,"韶关市",50L));
		cities.add(new CityVO(755L,"深圳市",50L));
		cities.add(new CityVO(756L,"珠海市",50L));
		cities.add(new CityVO(754L,"汕头市",50L));
		cities.add(new CityVO(757L,"佛山市",50L));
		cities.add(new CityVO(750L,"江门市",50L));
		cities.add(new CityVO(759L,"湛江市",50L));
		cities.add(new CityVO(668L,"茂名市",50L));
		cities.add(new CityVO(758L,"肇庆市",50L));
		cities.add(new CityVO(752L,"惠州市",50L));
		cities.add(new CityVO(753L,"梅州市",50L));
		cities.add(new CityVO(660L,"汕尾市",50L));
		cities.add(new CityVO(762L,"河源市",50L));
		cities.add(new CityVO(662L,"阳江市",50L));
		cities.add(new CityVO(763L,"清远市",50L));
		cities.add(new CityVO(769L,"东莞市",50L));
		cities.add(new CityVO(760L,"中山市",50L));
		cities.add(new CityVO(768L,"潮州市",50L));
		cities.add(new CityVO(663L,"揭阳市",50L));
		cities.add(new CityVO(766L,"云浮市",50L));
		cities.add(new CityVO(771L,"南宁市",60L));
		cities.add(new CityVO(772L,"柳州市",60L));
		cities.add(new CityVO(773L,"桂林市",60L));
		cities.add(new CityVO(774L,"梧州市",60L));
		cities.add(new CityVO(779L,"北海市",60L));
		cities.add(new CityVO(770L,"防城港市",60L));
		cities.add(new CityVO(777L,"钦州市",60L));
		cities.add(new CityVO(775L,"贵港市",60L));
		cities.add(new CityVO(1775L,"玉林市",60L));
		cities.add(new CityVO(776L,"百色市",60L));
		cities.add(new CityVO(1774L,"贺州市",60L));
		cities.add(new CityVO(778L,"河池市",60L));
		cities.add(new CityVO(1772L,"来宾市",60L));
		cities.add(new CityVO(1771L,"崇左市",60L));
		cities.add(new CityVO(898L,"海口市",80L));
		cities.add(new CityVO(1898L,"三亚市",80L));
		cities.add(new CityVO(2898L,"省直辖",80L));
		cities.add(new CityVO(23L,"重庆市",310L));
		cities.add(new CityVO(28L,"成都市",250L));
		cities.add(new CityVO(813L,"自贡市",250L));
		cities.add(new CityVO(812L,"攀枝花市",250L));
		cities.add(new CityVO(830L,"泸州市",250L));
		cities.add(new CityVO(838L,"德阳市",250L));
		cities.add(new CityVO(816L,"绵阳市",250L));
		cities.add(new CityVO(839L,"广元市",250L));
		cities.add(new CityVO(825L,"遂宁市",250L));
		cities.add(new CityVO(832L,"内江市",250L));
		cities.add(new CityVO(833L,"乐山市",250L));
		cities.add(new CityVO(817L,"南充市",250L));
		cities.add(new CityVO(1833L,"眉山市",250L));
		cities.add(new CityVO(831L,"宜宾市",250L));
		cities.add(new CityVO(826L,"广安市",250L));
		cities.add(new CityVO(818L,"达州市",250L));
		cities.add(new CityVO(835L,"雅安市",250L));
		cities.add(new CityVO(827L,"巴中市",250L));
		cities.add(new CityVO(1832L,"资阳市",250L));
		cities.add(new CityVO(837L,"阿坝州",250L));
		cities.add(new CityVO(836L,"甘孜州",250L));
		cities.add(new CityVO(834L,"凉山州",250L));
		cities.add(new CityVO(851L,"贵阳市",70L));
		cities.add(new CityVO(858L,"六盘水市",70L));
		cities.add(new CityVO(852L,"遵义市",70L));
		cities.add(new CityVO(853L,"安顺市",70L));
		cities.add(new CityVO(856L,"铜仁地区",70L));
		cities.add(new CityVO(859L,"黔西南州",70L));
		cities.add(new CityVO(857L,"毕节地区",70L));
		cities.add(new CityVO(855L,"黔东南州",70L));
		cities.add(new CityVO(854L,"黔南州",70L));
		cities.add(new CityVO(871L,"昆明市",290L));
		cities.add(new CityVO(874L,"曲靖市",290L));
		cities.add(new CityVO(877L,"玉溪市",290L));
		cities.add(new CityVO(875L,"保山市",290L));
		cities.add(new CityVO(870L,"昭通市",290L));
		cities.add(new CityVO(888L,"丽江市",290L));
		cities.add(new CityVO(878L,"楚雄州",290L));
		cities.add(new CityVO(873L,"红河州",290L));
		cities.add(new CityVO(876L,"文山州",290L));
		cities.add(new CityVO(879L,"思茅市",290L));
		cities.add(new CityVO(691L,"西双版纳州",290L));
		cities.add(new CityVO(872L,"大理州",290L));
		cities.add(new CityVO(692L,"德宏州",290L));
		cities.add(new CityVO(886L,"怒江州",290L));
		cities.add(new CityVO(887L,"迪庆州",290L));
		cities.add(new CityVO(883L,"临沧市",290L));
		cities.add(new CityVO(891L,"拉萨市",270L));
		cities.add(new CityVO(895L,"昌都地区",270L));
		cities.add(new CityVO(893L,"山南地区",270L));
		cities.add(new CityVO(892L,"日喀则地区",270L));
		cities.add(new CityVO(896L,"那曲地区",270L));
		cities.add(new CityVO(897L,"阿里地区",270L));
		cities.add(new CityVO(894L,"林芝地区",270L));
		cities.add(new CityVO(29L,"西安市",230L));
		cities.add(new CityVO(919L,"铜川市",230L));
		cities.add(new CityVO(917L,"宝鸡市",230L));
		cities.add(new CityVO(910L,"咸阳市",230L));
		cities.add(new CityVO(913L,"渭南市",230L));
		cities.add(new CityVO(911L,"延安市",230L));
		cities.add(new CityVO(916L,"汉中市",230L));
		cities.add(new CityVO(912L,"榆林市",230L));
		cities.add(new CityVO(915L,"安康市",230L));
		cities.add(new CityVO(914L,"商洛市",230L));
		cities.add(new CityVO(931L,"兰州市",40L));
		cities.add(new CityVO(1937L,"嘉峪关市",40L));
		cities.add(new CityVO(1935L,"金昌市",40L));
		cities.add(new CityVO(943L,"白银市",40L));
		cities.add(new CityVO(938L,"天水市",40L));
		cities.add(new CityVO(935L,"武威市",40L));
		cities.add(new CityVO(936L,"张掖市",40L));
		cities.add(new CityVO(933L,"平凉市",40L));
		cities.add(new CityVO(937L,"酒泉市",40L));
		cities.add(new CityVO(934L,"庆阳市",40L));
		cities.add(new CityVO(932L,"定西市",40L));
		cities.add(new CityVO(939L,"陇南市",40L));
		cities.add(new CityVO(930L,"临夏州",40L));
		cities.add(new CityVO(941L,"甘南州",40L));
		cities.add(new CityVO(971L,"西宁市",200L));
		cities.add(new CityVO(972L,"海东地区",200L));
		cities.add(new CityVO(970L,"海北州",200L));
		cities.add(new CityVO(973L,"黄南州",200L));
		cities.add(new CityVO(974L,"海南州",200L));
		cities.add(new CityVO(975L,"果洛州",200L));
		cities.add(new CityVO(976L,"玉树州",200L));
		cities.add(new CityVO(977L,"海西州",200L));
		cities.add(new CityVO(951L,"银川市",190L));
		cities.add(new CityVO(952L,"石嘴山市",190L));
		cities.add(new CityVO(953L,"吴忠市",190L));
		cities.add(new CityVO(954L,"固原市",190L));
		cities.add(new CityVO(955L,"中卫市",190L));
		cities.add(new CityVO(991L,"乌鲁木齐市",280L));
		cities.add(new CityVO(990L,"克拉玛依市",280L));
		cities.add(new CityVO(995L,"吐鲁番地区",280L));
		cities.add(new CityVO(902L,"哈密地区",280L));
		cities.add(new CityVO(994L,"昌吉州",280L));
		cities.add(new CityVO(909L,"博尔塔拉州",280L));
		cities.add(new CityVO(996L,"巴音郭楞州",280L));
		cities.add(new CityVO(997L,"阿克苏地区",280L));
		cities.add(new CityVO(908L,"克孜勒苏州",280L));
		cities.add(new CityVO(998L,"喀什地区",280L));
		cities.add(new CityVO(903L,"和田地区",280L));
		cities.add(new CityVO(999L,"伊犁州",280L));
		cities.add(new CityVO(901L,"塔城地区",280L));
		cities.add(new CityVO(906L,"阿勒泰地区",280L));
		cities.add(new CityVO(993L,"省直辖",280L));

	}
	public static List<ProvinceVO> listAllProvinces() {
		return provinces;
	}
	
	public static List<CityVO> listAllCities() {
		return cities;
	}

	public static List<CityVO> listCitiesByProvincesId(Long provinceId) {
		List<CityVO> result = new ArrayList<CityVO>();
		for(CityVO city : cities){
			if(city.getProvinceId().equals(provinceId)){
				result.add(city);
			}
		}
		return result;
	}

}
